<?php /* Smarty version 2.6.18, created on 2010-05-04 14:35:06
         compiled from admin/image/edit.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<div id="main">
		  	<div class="head-dark-box">
				<div class="tit">后台管理->图片管理->图片列表</div>
			</div>	
			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/title.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		    <form  method="post" action="admin.php?m=image&a=del&pid=<?php echo $this->_tpl_vars['pid']; ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" onsubmit="return confirm('你确定要删除选中的图片项吗?')">
			<div class="msg-box">
				<ul class="viewmess">
					<li class="light-row">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请从相册中选择需要编辑的图片&nbsp;&nbsp; <?php echo $this->_tpl_vars['select']; ?>
	
					</li>
					<?php if ($this->_tpl_vars['showType'] == 'thumb'): ?>
					     <hr>
					     <div class="picthumb">
					     <?php unset($this->_sections['tu']);
$this->_sections['tu']['name'] = 'tu';
$this->_sections['tu']['loop'] = is_array($_loop=$this->_tpl_vars['pics']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tu']['show'] = true;
$this->_sections['tu']['max'] = $this->_sections['tu']['loop'];
$this->_sections['tu']['step'] = 1;
$this->_sections['tu']['start'] = $this->_sections['tu']['step'] > 0 ? 0 : $this->_sections['tu']['loop']-1;
if ($this->_sections['tu']['show']) {
    $this->_sections['tu']['total'] = $this->_sections['tu']['loop'];
    if ($this->_sections['tu']['total'] == 0)
        $this->_sections['tu']['show'] = false;
} else
    $this->_sections['tu']['total'] = 0;
if ($this->_sections['tu']['show']):

            for ($this->_sections['tu']['index'] = $this->_sections['tu']['start'], $this->_sections['tu']['iteration'] = 1;
                 $this->_sections['tu']['iteration'] <= $this->_sections['tu']['total'];
                 $this->_sections['tu']['index'] += $this->_sections['tu']['step'], $this->_sections['tu']['iteration']++):
$this->_sections['tu']['rownum'] = $this->_sections['tu']['iteration'];
$this->_sections['tu']['index_prev'] = $this->_sections['tu']['index'] - $this->_sections['tu']['step'];
$this->_sections['tu']['index_next'] = $this->_sections['tu']['index'] + $this->_sections['tu']['step'];
$this->_sections['tu']['first']      = ($this->_sections['tu']['iteration'] == 1);
$this->_sections['tu']['last']       = ($this->_sections['tu']['iteration'] == $this->_sections['tu']['total']);
?>
						<div class="pic_list">	
							<?php if ($this->_tpl_vars['pics'][$this->_sections['tu']['index']]['hasThumb'] == 1): ?>
								<a href="javascript:newopen(<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
)"><img alt="<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['picTitle']; ?>
" src="<?php echo $this->_tpl_vars['path']; ?>
th_<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['picName']; ?>
" width="100" height="100"></a><br>
							<?php else: ?>
								<a href="javascript:newopen(<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
)"><img alt="<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['picTitle']; ?>
" src="<?php echo $this->_tpl_vars['path']; ?>
<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['picName']; ?>
" width="100" height="100"></a><br>
							<?php endif; ?>
							<input type="checkbox" name="id[]" value="<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
">	
							<a href="javascript:newopen(<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
)"><?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['picTitle']; ?>
</a><br>
						
							【<a href="admin.php?m=image&a=mod&id=<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
">修改</a>/<a onclick="return confirm('确定要删除图片<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['picTitle']; ?>
吗？')" href="admin.php?m=image&a=del&id=<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
&pid=<?php echo $this->_tpl_vars['pid']; ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
">删除</a>】
					      	</div>
					    <?php endfor; else: ?>
						<li class="light-row">
							该类中没有需要的图片
						</li>
					    <?php endif; ?>
					    </div>
					<?php elseif ($this->_tpl_vars['showType'] == 'list'): ?>
					    	<li class="dark-row">
							<span class="list_width width_font">标&nbsp;&nbsp;题</span>
							<span class="list_width width_font">描&nbsp;&nbsp;述</span>
							<span class="list_width width_font">缩略/水印</span>
							<span class="list_width width_font">操&nbsp;&nbsp;作</span>
						</li>
				            <?php unset($this->_sections['tu']);
$this->_sections['tu']['name'] = 'tu';
$this->_sections['tu']['loop'] = is_array($_loop=$this->_tpl_vars['pics']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tu']['show'] = true;
$this->_sections['tu']['max'] = $this->_sections['tu']['loop'];
$this->_sections['tu']['step'] = 1;
$this->_sections['tu']['start'] = $this->_sections['tu']['step'] > 0 ? 0 : $this->_sections['tu']['loop']-1;
if ($this->_sections['tu']['show']) {
    $this->_sections['tu']['total'] = $this->_sections['tu']['loop'];
    if ($this->_sections['tu']['total'] == 0)
        $this->_sections['tu']['show'] = false;
} else
    $this->_sections['tu']['total'] = 0;
if ($this->_sections['tu']['show']):

            for ($this->_sections['tu']['index'] = $this->_sections['tu']['start'], $this->_sections['tu']['iteration'] = 1;
                 $this->_sections['tu']['iteration'] <= $this->_sections['tu']['total'];
                 $this->_sections['tu']['index'] += $this->_sections['tu']['step'], $this->_sections['tu']['iteration']++):
$this->_sections['tu']['rownum'] = $this->_sections['tu']['iteration'];
$this->_sections['tu']['index_prev'] = $this->_sections['tu']['index'] - $this->_sections['tu']['step'];
$this->_sections['tu']['index_next'] = $this->_sections['tu']['index'] + $this->_sections['tu']['step'];
$this->_sections['tu']['first']      = ($this->_sections['tu']['iteration'] == 1);
$this->_sections['tu']['last']       = ($this->_sections['tu']['iteration'] == $this->_sections['tu']['total']);
?>
						<li class="light-row" style="padding-top:2px; padding-bottom:2px">
							<span class="list_width icon"><input type="checkbox" name="id[]" value="<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
"><a href="javascript:newopen(<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
)"><?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['picTitle']; ?>
</a></span>
							<span class="list_width"><?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['description']; ?>
</span>
							<span class="list_width"><?php if ($this->_tpl_vars['pics'][$this->_sections['tu']['index']]['hasThumb'] == 1): ?>有<?php else: ?>无<?php endif; ?>/<?php if ($this->_tpl_vars['pics'][$this->_sections['tu']['index']]['hasMark'] == 1): ?>有<?php else: ?>无<?php endif; ?></span>
				
							<span class="list_width">
							【<a href="admin.php?m=image&a=mod&id=<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
">修改</a>】
							【<a onclick="return confirm('确定要删除图片<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['picTitle']; ?>
吗？')" href="admin.php?m=image&a=del&id=<?php echo $this->_tpl_vars['pics'][$this->_sections['tu']['index']]['id']; ?>
&pid=<?php echo $this->_tpl_vars['pid']; ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
">删除</a>】
							</span>
						</li>
					    <?php endfor; else: ?>
						<li class="light-row">
							本页没有需要的图片
						</li>
					    <?php endif; ?>
					<?php endif; ?>
				
					<li class="dark-row">
						<span class="col_width" style="margin-left:15px"> 
							<a href="javascript:select()">全选</a>/<a href="javascript:fanselect()">反选</a>/<a href="javascript:noselect()">全不选</a>&nbsp;&nbsp;选中项: 
							<input  name="delb" type="image" title="删除"  src="public/images/admin/delete.gif">&nbsp;&nbsp;
						 </span> 
						<span class="right">
							<?php echo $this->_tpl_vars['fpage']; ?>

						</span>
					</li>
				</ul>	
			</div>
                    </form>
		</div>
<div id="timer">
	<p><span class="exetime">当前脚本执行用时</span><span class="red_font"><?php echo $this->_tpl_vars['timer']; ?>
</span>秒&nbsp;</p>	
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>	

